package cn.changshengjue.dakong.task;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

public class PlayerStask implements Runnable {
	private final Player player;
	private final String cmd;

	public PlayerStask(Player player, String cmd) {
		this.player = player;
		this.cmd = cmd;
	}

	public void run() {
		if (this.player != null) {
			Bukkit.dispatchCommand(player, cmd);
		}
	}
}
